<% systemUrl = resData.system_obj_urls %>
<% allLanguage = resData.allLanguage %>
<% allPost = resData.allPost %>
<div class="post-page post-index postElem">
    <div class="search-container searchContainer">
        <div class="content">
            <form class="layui-form search-box" onsubmit="return false">
                <span class="layui-icon layui-icon-down search-location txt-ellipsis currentCity changeCity">--</span>
                <input type="text" class="search-input searchPost" placeholder="请输入期望的工作职位">
                <button type="button" class="layui-btn layui_submit search-btn searchBtn">搜索</button>
            </form>
        </div>
    </div>
    <div class="content">
        <section class="search-condition">
            <div class="condition-wrap">
                <div class="condition-item lan">
                    <strong>语言要求：</strong>
                    <div class="condition-item-inner">
                        <span class="all condition" data-type="lan" data-cd="">不限</span>
                        <% if(allLanguage.length){ %>
                            <% for(var i = 0, len = allLanguage.length; i<len; i++){ %>
                                <% var item = allLanguage[i] %>
                                <span class="condition" data-type="lan" data-cd="<%= item.englishName %>"><%= item.chineseName %></span>
                            <% } %>
                        <% } %>
                    </div>
                    <a href="javascript:;" class="more moreCondition">更多></a>
                </div>
                <div class="condition-item work_prop">
                    <strong>工作性质：</strong>
                    <div class="condition-item-inner">
                        <span class="all condition" data-type="work_prop" data-cd="">不限</span>
                        <span class="condition" data-type="work_prop" data-cd="全职">全职</span>
                        <span class="condition" data-type="work_prop" data-cd="兼职">兼职</span>
                        <span class="condition" data-type="work_prop" data-cd="实习">实习</span>
                    </div>
                </div>
                <div class="condition-item post_1st">
                    <strong>职位类型：</strong>
                    <div class="condition-item-inner">
                        <label class="all condition" data-type="post_1st" data-cd="">不限</label>
                        <% if(allPost.length){ %>
                            <% for(var i = 0, len = allPost.length; i<len; i++){ %>
                                <% var item = allPost[i] %>
                                <label class="condition" data-type="post_1st" data-cd="<%= item.positionCode %>"><%= item.name %></label>
                            <% } %>
                        <% } %>
                    </div>
                </div>
                <div class="condition-item-more post_2nd">
                    <% if(allPost.length){ %>
                        <% for(var i = 0, len = allPost.length; i<len; i++){ %>
                            <% var item = allPost[i] %>
                            <% var sysPositions = item.sysPositions || [] %>
                            <div class="condition-item-inner hidden">
                                <% for(var j = 0, lenJ = sysPositions.length; j<lenJ; j++){ %>
                                    <% itemJ = sysPositions[j] %>
                                    <span class="condition" data-type="post_2nd" data-cd="<%= itemJ.positionCode %>"><%= itemJ.name %></span>
                                <% } %>
                            </div>
                        <% } %>
                    <% } %>
                </div>
            </div>
            <div class="condition-wrap">
                <form class="layui-form conditionForm">
                    <select class="layui-select experience" lay-filter="experience">
                        <option value="" disabled>工作经验</option>
                        <option value="">不限</option>
                        <option value="1年以内">1年以内</option>
                        <option value="1-3年">1-3年</option>
                        <option value="3-5年">3-5年</option>
                        <option value="5-10年">5-10年</option>
                        <option value="10年以上">10年以上</option>
                    </select>
                    <select class="layui-select degree" lay-filter="degree">
                        <option value="" disabled>学历要求</option>
                        <option value="">不限</option>
                        <option value="高中及以下">高中及以下</option>
                        <option value="大专">大专</option>
                        <option value="本科">本科</option>
                        <option value="硕士">硕士</option>
                        <option value="博士">博士</option>
                    </select>
                    <select class="layui-select salary" lay-filter="salary">
                        <option value="" disabled>薪资要求</option>
                        <option value="">不限</option>
                        <option value="0-3">3k以下</option>
                        <option value="3-5">3-5k</option>
                        <option value="5-10">5-10k</option>
                        <option value="10-15">10-15k</option>
                        <option value="15-20">15-20k</option>
                        <option value="20-30">20-30k</option>
                        <option value="30-50">30-50k</option>
                        <option value="50-">50k以上</option>
                    </select>
                    <select class="layui-select max isWaipai" lay-filter="isWaipai">
                        <option value="" disabled>是否接受外派</option>
                        <option value="">不限</option>
                        <option value="1">接受外派</option>
                        <option value="0">不接受外派</option>
                    </select>
                    <select class="layui-select publishTime" lay-filter="publishTime">
                        <option value="" disabled>发布时间</option>
                        <option value="">不限</option>
                        <option value="一天以内">一天以内</option>
                        <option value="三天以内">三天以内</option>
                        <option value="七天以内">七天以内</option>
                        <option value="十五天以内">十五天以内</option>
                        <option value="一个月以内">一个月以内</option>
                    </select>
                    <a href="javascript:;" class="clear clearCondition">清空筛选条件</a>
                </form>
            </div>
        </section>
        <section class="search-content">
            <div class="layui-row">
                <div class="layui-col-md9 left-cnt">
                    <div class="list searchList">
                        <div class="data-empty"></div>
                    </div>
                    <div id="pagination"></div>
                </div>
                <div class="layui-col-md3 right-cnt rightCnt">
                    <section class="gzh">
                        <h3>51语言公众号</h3>
                        <div class="align-center">
                            <img src="/public/images/51yuyan_gzh.jpg" width="212" height="212" alt="gzh">
                            <p>扫码关注获取更多招聘信息</p>
                        </div>
                    </section>
                    <section class="qun">
                        <h3>求职交流群</h3>
                        <div class="layui-row">
                            <div class="layui-col-md2 qun-1"></div>
                            <div class="layui-col-md6">全职交流群</div>
                            <div class="layui-col-md4">
                                <button class="layui-btn">加入</button>
                                <div class="ewm">
                                    <img src="/public/images/post/qun-1.png" alt="">
                                </div>
                            </div>
                        </div>
                        <div class="layui-row">
                            <div class="layui-col-md2 qun-2"></div>
                            <div class="layui-col-md6">兼职交流群</div>
                            <div class="layui-col-md4">
                                <button class="layui-btn">加入</button>
                                <div class="ewm">
                                    <img src="/public/images/post/qun-2.png" alt="">
                                </div>
                            </div>
                        </div>
                        <div class="layui-row">
                            <div class="layui-col-md2 qun-3"></div>
                            <div class="layui-col-md6">实习生交流群</div>
                            <div class="layui-col-md4">
                                <button class="layui-btn">加入</button>
                                <div class="ewm">
                                    <img src="/public/images/post/qun-3.png" alt="">
                                </div>
                            </div>
                        </div>
                    </section>
                    <section class="ad">
                        <a href="<%= systemUrl['yu'] %>" target="_blank">
                            <img src="/public/images/post/ad_1.png" width="280" height="139" alt="">
                        </a>
                    </section>
                    <section class="ad">
                        <a href="<%= systemUrl['pai'] %>" target="_blank">
                            <img src="/public/images/post/ad_2.png" width="280" height="139" alt="">
                        </a>
                    </section>

                </div>
            </div>
        </section>
    </div>
</div>
<script type="text/javascript" src="/public/js/modules/post.js"></script>
<script type="text/javascript">

    gb_config_obj.init_post_condition();

    gb_config_obj.init_post_list()
</script>